package com.zhongan;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 用户中心服务启动类
 */
@EnableTransactionManagement //启动注解事务管理，等同于xml配置方式的 <tx:annotation-driven />
@EnableFeignClients
@EnableDiscoveryClient
@SpringBootApplication
public class CloudUserApplication {

	public static void main(String[] args) {
		new SpringApplicationBuilder(CloudUserApplication.class).web(true).run(args);
	}
}
